package lesson19.notepad;

public class NotepadDemo {

	public static void main(String[] args) {
		SimpleNotepad simpleNotepad = new SimpleNotepad();
		simpleNotepad.addPage(new Page("Hi I am a page"));
		simpleNotepad.addPage(new Page("Hi I am another page"));
		Page page = new Page("Text for delete");
		page.addText("ALABALAALALALALLSDALSFGASFLA");
		simpleNotepad.addPage(page);
		simpleNotepad.showPages();
		System.out.println("------");
		simpleNotepad.deleteTextAtCurrentPage(page);
		simpleNotepad.showPages();
	}

}
